<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html>
<html lang='en'>
<head>
	<meta charset='utf-8' />
	<title>广溢信息技术有限公司</title>
	<meta content='' name='description' />
	<meta content='' name='author' />
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<!-- Bootstrap -->
	<link href="__PUBLIC__/css/bootstrap.min.css" rel="stylesheet" media="screen">
	<link href="__PUBLIC__/css/font-awesome.min.css" rel="stylesheet" >
	<!--[if IE 7]>
	<link  href="__PUBLIC__/css/font-awesome-ie7.min.css" rel="stylesheet">
	<![endif]-->

	<link href="__PUBLIC__/css/bootstrap-responsive.css" rel="stylesheet">
	<link href="__PUBLIC__/css/test.css" rel="stylesheet">
	<script src="__PUBLIC__/js/jquery.js"></script>
	<script src="__PUBLIC__/js/bootstrap.min.js"></script>
	<script src="__PUBLIC__/js/common.js"></script>
	<!-- Le HTML5 shim, for IE6-8 support of HTML5 elements -->
	<!--[if lt IE 9]>
	<script src="__PUBLIC__/js/html5shiv.js"></script>
	<script src="__PUBLIC__/js/respond.min.js"></script>
	<![endif]-->
</head>
<body><div style="padding-left:20px;padding-right:20px;">
		<div class="row-fluid">
			<div class="span12">
<div class="popup">
	<div class="row-fluid title">
		<span>请选择行业</span>
	</div>	
	<div class="row-fluid operate">
		<div class="left">
			<a  onclick="save();" class="btn">确定</a>
		</div>
		<div class="right">
			<a  onclick="myclose();" class="btn">关闭</a>
		</div>
	</div>
	<div class="popup_tree_menu">

		<ul class="tree_menu">
      <?php foreach($industry_arr as $key => $val ){ ?>
      <li>
      <a node="12">
        <i class="icon-angle-right level4"></i>
        <span><?php echo $val ?></span>
      </a>
      </li>
      <?php } ?>
		</ul>
	</div>
</div>
<input type="hidden" name="val" id="val">
<input type="hidden" name="name" id="name">
<script type="text/javascript">
	function save() {
		if ($("#name").val().length > 0) {			
      //alert($("#name").val());
			$("#btn_IndustryID_2", parent.document).val($("#name").val());
			//$("#pid", parent.document).val($("#val").val());
		} else {
			alert("请选择节点");
			return false;
		}
		myclose();
	}

	$(document).ready(function(){
		parent_node=$(".sub_left_menu ul.tree_menu a.active",parent.document).attr("node");
		$("ul.tree_menu a[node='"+parent_node+"']").parent().hide();
		$(".popup_tree_menu a:not('.disabled')").click(function() {
			$("#val").val($(this).attr("node"));
			$("#name").val($(this).children("span").text());
			$(".tree_menu a.active").removeClass("active");			
			$(this).addClass("active");
		})
	}); 
</script>
</div>
		</div>
	</div>

</body>
</html>